package com.backend.system.common;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 级连vo
 *
 * @author dormitory
 */
@Data
@ApiModel
public class CascadeVo implements Serializable {

    private static final long serialVersionUID = -187919047183624116L;

    @ApiModelProperty("级连内容")
    private List<Body> options;


    @Data
    @ApiModel
    public static class Body implements Serializable {
        private static final long serialVersionUID = 8133410315466685231L;

        /**
         * 标签名
         */
        @ApiModelProperty("标签名")
        private String label;
        /**
         * 值
         */
        @ApiModelProperty("值")
        private String value;
        /**
         * 子级
         */
        @JsonInclude(JsonInclude.Include.NON_EMPTY)
        @ApiModelProperty("子级")
        private List<Body> children;
    }
}
